package com.yequan.thread.base.volatilepackage;

public class VolatileFeatureClass {

    private volatile long v = 0L;

    public void set(long l) {
        v = l;
    }

    public void getAndIncrement() {
        v++;
    }

    public long get() {
        return v;
    }

}
